package com.getmethods;

public class Student {
    private String name;
    private  int age;

    public Student() {}

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void sleep(){
        System.out.println("我睡着了");
    }

    private void eat(String food){
        System.out.println(this.name + "在吃" + food );
        food = "哈哈";
        System.out.println(food);
    }
}
